package com.nameless.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author chh
 * @since 2023-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_car_comment")
@ApiModel(value = "CarComment对象", description = "")
public class CarComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer clientId;

    @TableField("carId")
    private Integer carId;

    @ApiModelProperty(value = "评价内容")
    private String content;
    @ApiModelProperty(value = "添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addtime;

    @ApiModelProperty(value = "手续办理点赞数量")
    private Integer value1;
    @ApiModelProperty(value = "车辆点赞数量")

    private Integer value2;
    @ApiModelProperty(value = "服务点赞数量")

    private Integer value3;

    @TableField(exist = false)
    private String clientName;

    @TableField(exist = false)
    private String carName;


}
